import 'package:flutter/material.dart';
import 'package:flutter_base/common/colors.dart';
import 'package:flutter_base/pages/homePage.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';

///程序的入口
void main() {
  //要实现路由跳转,必须在外层包裹有路由组件的Widget
  runApp(
    MaterialApp(
      //取出debug字样
      debugShowCheckedModeBanner: false,
      //设置一些通用的主题颜色
      theme: ThemeData(
        primarySwatch: createMaterialColor(bgColor),
        accentColor: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: HomePage(),
      builder: EasyLoading.init(),
    ),
  );
}
